<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
	    <!-- Loading Bootstrap -->
	    <link href="Public/Admin/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
	    <!-- Loading Flat UI -->
	    <link href="Public/Admin/Flat/dist/css/flat-ui.css" rel="stylesheet">
	    <link href="Public/Admin/Flat/docs/assets/css/demo.css" rel="stylesheet">
	    <link rel="shortcut icon" href="Public/Admin/Flat/img/favicon.ico">
	    <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
	    <!--[if lt IE 9]>
	      <script src="dist/js/vendor/html5shiv.js"></script>
	      <script src="dist/js/vendor/respond.min.js"></script>
	    <![endif]-->
	</head>
	<body>
		<table class="table table-hover">
			<tr class="active">
			  <th width="100">订单id</th>
			  <th width="100">用户id</th>
			  <th width="200">收货地址</th>
			  <th width="160">订单号</th>
			  <th width="100">收货人</th>
			  <th width="200">下单时间</th>
			  <th width="200">价格</th>
			  <th width="200">订单状态</th>
			  <th width="200">操作</th>
			</tr>
			{{foreach from="$data" value="$v"}}
				<tr>
					<td>{{$v['inid']}}</td>
					<td>{{$v['in_uid']}}</td>
					<td>{{$v['dz']}}</td>
					<td>{{$v['in_orderid']}}</td>
					<td>{{$v['in_cnee']}}</td>
					<td>{{date('Y-m-d H:i:s',$v['time'])}}</td>
					<td>{{$v['in_aggregate']}}</td>
					{{if value="$v['in_status'] == 0"}}
						<td>待付款</td>
					{{endif}}
					{{if value="$v['in_status'] == 1"}}
						<td>已付款</td>
					{{endif}}
					{{if value="$v['in_status'] == 2"}}
						<td>未发货</td>
					{{endif}}
					{{if value="$v['in_status'] == 3"}}
						<td>已发货</td>
					{{endif}}
					{{if value="$v['in_status'] == 4"}}
						<td>交易完成</td>
					{{endif}}
					{{if value="$v['in_status'] == 5"}}
						<td>订单已撤销</td>
					{{endif}}
					<td>
						<a href="{{U('indent/state',array('inid'=>$v['inid']))}}" class="btn btn-sm btn-primary">修改状态</a>
						<a href="" class="btn btn-sm btn-danger">删除</a>
					</td>
				</tr>
			{{endforeach}}
		</table>
	</body>
</html>
